package com.ubix.kiosoft2;

/**
 * @Created by taylor on 9/28/18.
 */

public class EventReader {

    public final static int EVENT_TYPE_CLEAR_SCREEN = 0;
    public final static int EVENT_TYPE_RESTORE_PAGE = 10;
    public final static int EVENT_TYPE_START_SCAN_ERROR = 11;
    public final static int EVENT_TYPE_STOP_SCAN_ERROR = 12;

    public final static int EVENT_TYPE_SINGLE_TIME_SUCCESS = 1;
    public final static int EVENT_TYPE_SINGLE_TIME_FAILED = 2;
    public final static int EVENT_TYPE_CYCLE_SUCCESS = 3;
    public final static int EVENT_TYPE_CYCLE_FAILED = 4;

    public int eventType;
    public String eventMsg;

    public EventReader(int t) {
        this.eventType = t;
    }

    public EventReader(String s) {
        this.eventMsg = s;
    }

    public EventReader(int t, String m) {
        this.eventType = t;
        this.eventMsg = m;
    }

}
